export const beforeEach = (to: any) => {
    // 判断是否在登录页
    if (to.path == '/login') {
        return
    }
    // 判断是否登录
    // if (!localStorage.getItem('token')) {
    //     return '/login'
    // }
    return
}

export const afterEach = () => {
    //console.log('后置');
}